"""
.yml .yaml 配置读取
"""

import yaml


def get_yaml_config(config_path: str) -> dict:
    """
    读取 YAML 配置文件

    Args:
        config_path: 配置文件路径

    Returns:
        配置文件内容
    """

    with open(config_path, "r", encoding="UTF-8") as f:
        config = yaml.load(f, Loader=yaml.FullLoader)

    return config


if __name__ == '__main__':
    from devtools import debug

    debug(get_yaml_config("./yaml_config.yaml"))
